<?php
return array(
    'router' => array(
        'routes' => array(
            'default' => array(
                'type' => 'Literal',
                'options' => array(
                    'route'    => '/users',
                    'defaults' => array(
                        '__NAMESPACE__' => 'Users\Front',
                    ),
                ),
            ),
        		
        	'admin' => array(
        		'type' => 'Literal',
        		'options' => array(
        			'route'    => '/admin/users',
        			'defaults' => array(
        				'__NAMESPACE__' => 'Users\Admin',
        				'controller' => 'users',
        				'action' => 'index'
        			),
        		),
        	),
        		
        		
        	'admin_users' => array(
        				'type'    => 'segment',
        				'options' => array(
        						'route'    => '/admin/users/users[/:action]/:id[/]',
        						'constraints' => array(
        								'action'     => '[a-zA-Z][a-zA-Z0-9_-]*',
        								'id'     => '[0-9]+',
        						),
        						'defaults' => array(
        								'__NAMESPACE__' => 'Users\Admin',
        								'controller' => 'users',
        						),
        				),
        		),
        		
        		'users_groups' => array(
        				'type' => 'Literal',
        				'options' => array(
        						'route'    => '/admin/users/groups',
        						'constraints' => array(
        								'controller' => 'groups',
        							),
        						'defaults' => array(
        								'__NAMESPACE__' => 'Users\Admin',
        								'controller' => 'groups',
        								'action' => 'index'
        						),
        				),
        		),
        ),
    ),
);
